package org.xbzheng.boot;

import org.springframework.boot.ExitCodeGenerator;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication(scanBasePackages = "org.xbzheng.boot")
public class BootApplication {

    @Bean
    public ExitCodeGenerator exitCodeGenerator() {
        return () -> 42;
    }

    public static void main(String[] args) {
        SpringApplication.run(BootApplication.class, args);
        //System.exit(SpringApplication.exit(SpringApplication.run(BootApplication.class, args)));
    }
}
